/*
 * Logger.h
 *
 *  Created on: Oct 9, 2014
 *      Author: root
 */
#include <iostream>
#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include "LoggerConfigurations.h"
#include <string>
using namespace std ;


#ifndef LOGGER_H_
#define LOGGER_H_

namespace LoggerNameSpace {

/**
 *  Logger is a class that implements logging functionality to log file
 */
class Logger {


public:
	Logger () ;
	Logger (string filename);
	virtual ~Logger () ;
	void logInfo (string text);
	void logError (string text);
	void logWarning (string text);

private:
	FILE * logfile;
	timespec timespc;
	void writeLineTofile (string text);
	void log (string text, string type);

} ;

} /* namespace LoggerNameSpace */

#endif /* LOGGER_H_ */
